﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace WindowsGame.Input
{
	/// <summary>
	/// XboxInputFactory is responsible for managing Xbox 360 input.
	/// </summary>
	public class XboxInputFactory : AInputFactory
	{
		public override Single Rotate()
		{
			return GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X;
		}

		public override Single Move()
		{
			return GamePad.GetState(PlayerIndex.One).Triggers.Right;
		}

		public override Boolean Warp()
		{
			return GamePad.GetState(PlayerIndex.One).Buttons.A == ButtonState.Pressed;
		}
	}
}